package city.spring.modules.ext.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 关联关系： train - employee
 *
 * @author HouKunLin
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("train_employee_ext")
public class TrainEmployeeExt implements Serializable {
    /**
     * 联系id
     */
    @TableId(type = IdType.AUTO)
    private Long id;
    /**
     * 培训id
     */
    private String trainId;

    /**
     * 培训名
     */
    @TableField(exist = false)
    private String trainName;

    /**
     * 员工id
     */
    private String relatedId;

    /**
     * 员工姓名
     */
    @TableField(exist = false)
    private String personName;

    /**
     * 培训开始时间
     */
    @TableField(exist = false)
    private Date trainStart;

    /**
     * 培训结束时间
     */
    @TableField(exist = false)
    private Date trainEnd;

    /**
     * 培训时长
     */
    @TableField(exist = false)
    private long trainLength;

    public TrainEmployeeExt(Long id, String trainId, String relatedId) {

    }
}